<?php

namespace App\Http\Requests\Api\Ucenter\User;

use App\Http\Requests\BaseRequest;

/**
 *
 * @authors generator
 * @date    2020-10-20 16:51:40
 */
class UpdateInfoRequest extends BaseRequest
{
    /**
     * 返回参数验证规则.
     *
     * @return array
     */
    protected function rule(): array
    {
        return [
            // 手机号码
            'nickname' => ['rule' => 'required|string', 'default' => ''],
            // 电子邮箱
            'gender' => ['rule' => 'required|in:0,1,2', 'default' => 0],
            // 头像
            'avatar' => ['rule' => 'required|string', 'default' => ''],
        ];

    }
}
